﻿using System;
using System.Collections.Generic;
using System.Text;
using CTEM.Controllers.DAO;
using CTEM.Models;

namespace CTEM.Controllers.BUS
{
    class MaterialBUS
    {
        private CT_MaterialDAO _materialDAO = new CT_MaterialDAO();
        //public List<CT_MaterialDTO> LoadAllMaterials()
        //{
        //    return _materialDAO.LoadAllMaterials();
        //}

        //public List<EstimateDetailDTO> LoadALlMaterialsEstimate(long consId)
        //{
        //    return _materialDAO.LoadAllMaterialsEstimate(consId);
        //}
        //public long CreateMaterials(CT_MaterialDTO dto)
        //{
        //    return _materialDAO.CreateMaterials(dto);
        //}
        //public bool UpdateMaterials(CT_MaterialDTO dto)
        //{
        //    return _materialDAO.UpdateMaterials(dto);
        //}
        //public bool deleteMaterials(long id)
        //{
        //    return _materialDAO.deleteMaterials(id);
        //}
        //public List<CT_MaterialDTO> search(string name)
        //{
        //    return _materialDAO.search(name);
        //}

        //public List<CT_MaterialDTO> LoadMaterialByWarehouseId(long warehousId)
        //{
        //    return _materialDAO.LoadMaterialbyWarehouseId(warehousId);
        //}
        //public bool CreateGroupMaterials(GroupMaterialDTO dto)
        //{
        //    return _materialDAO.CreateGroupMaterials(dto);
        //}
        //public bool deleteGroupMaterials(long id)
        //{
        //    return _materialDAO.deleteGroupMaterials(id);
        //}
        //public CT_MaterialDTO GetMaterialById(long id)
        //{
        //    return _materialDAO.GetMaterialById(id);
        //}
        //public List<GroupMaterialDTO> getGroupMaterialsByCons(long id)
        //{
        //    return _materialDAO.getGroupMaterialsByCons(id);
        //}
        //public List<GroupMaterialDTO> getGroupMaterialsByEst(long id)
        //{
        //    return _materialDAO.getGroupMaterialsByEst(id);
        //}
    }
}
